package com.boot.management_boot.Utils;
import lombok.Data;
/**
 * @Author 初衷.
 * @Date 2020/10/16
 **/
    //  返回结果
    @Data
    public class Result {
        /*状态码  一般是101 错误  200 成功*/
        private String code;
        /*提示信息*/
        private String msg;
        /*返回值*/
        private Object data;
        /*返回值*/
        private Object data1;

        public Result(String code, String msg, Object data, Object data1) {
            this.code = code;
            this.msg = msg;
            this.data = data;
            this.data1 = data1;
        }

        public Result(String code, String msg, Object data) {
            this.code = code;
            this.msg = msg;
            this.data = data;
        }

        public Result(String code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public Object getData1() {
            return data1;
        }

        public void setData1(Object data1) {
            this.data1 = data1;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        public String getMsg() {
            return msg;
        }

        public void setMsg(String msg) {
            this.msg = msg;
        }

        public Object getData() {
            return data;
        }

        public void setData(Object data) {
            this.data = data;
        }

        @Override
        public String toString() {
            return "Result{" +
                    "code='" + code + '\'' +
                    ", msg='" + msg + '\'' +
                    ", data=" + data +
                    ", data1=" + data1 +
                    '}';
        }
}
